<template>
    <div>
    <ul>
      <li v-for="item in reyingList" :key="item.id">
          <router-link :to="'/item/'+item.id"  class="cli">
        <div class="aimg"><img :src="item.img" />
         
        </div>
       <div class="ali">
            <ul>
                <li>{{ item.nm }} <span :class="'version '+item.version"></span></li>
                <li v-if="item.sc!==0">观众评 <span>{{item.sc}}</span></li>
                <li v-else><span>{{item.wish}}</span>人想看</li>
                <li>主演:{{item.star}}</li>
                <li>{{item.showInfo}}</li>
            </ul>
            
        </div>
        <div class="gopiao">
        
         <button class="gp" v-show="item.globalReleased">购票</button>
         <button class="ys" v-show="!item.globalReleased">预售</button>   
        </div>
        </router-link>
      </li>
    </ul>
    </div>
</template>
<script>
export default {
    name:"Hot",
    props:['reyingList'],
    data() {
        return {
        }
    },
    
    methods: {
        
    },
    components:{}
}
</script>
<style scoped>
.cli{
    height: 160px;
    display: flex;
    color: black;
}
.aimg{
    width: 127px;
    height: 180px;
}
.aimg img{
    width: 120px;
    height: 140px;
}
.ali{
    width: 350px;
    height: 100px;
    margin-left: 10px;
    
}

.ali ul li{
    padding-top: 10px;
    overflow: hidden;
    /* font-size: 15px; */
    /* white-space: nowrap; */
    text-overflow: ellipsis;
    font-size: 16px;
}
.ali ul li:nth-child(1){
    padding: 0;
    font-size: 20px;
    font-weight:bold;
}

.version.v2d.imax {
    width: 43px;
    background-image: url();
}
 .version {
    background-size: contain;
    background-repeat: no-repeat;
    height: 14px;
    width: 17px;
    display: inline-block;
    margin-top: 5px;
    -webkit-box-flex: 0;
    flex: 0 0 auto;
    margin-right: 3px;
}
.version.v3d.imax {
    width: 43px;
    background-image: url();
}
.ali ul li:nth-child(2) span{
    color: orangered;
}
.gopiao{
    width: 60px;
    height: 20px;
    margin-top: 50px;
    text-align: center;
   

}
.gp{
    width: 50px;
    height: 40px;
    border: 1px solid #ccc;
    font-size: 15px;
    color: white;

    background-color: red; border-radius: 5%;

}
.ys{
    width: 50px;
    height: 40px;
    border: 1px solid #ccc;
    font-size: 15px;
    color: white;

    background-color: rgb(55, 55, 255); border-radius: 5%;

}

</style>